import { encrypt } from '@/utils/my_encrypt'
import request from '@/utils/request'

// 注册
export function register(user) {
  // 需要先对密码进行加密
  // user.password = encrypt(user.password);
  return request({
    url: '/register',
    method: 'post',
    data: user
  })
}
